#!/usr/bin/python
# -*- coding: utf-8 -*-

KB_FILE = 'pedestrian_kb.xml'

CAMERA = 1
INITIAL_FRAME = 1871
END_FRAME = 1871

import PedestrianCrossingAnalyzer, DB_Util
from PedestrianCrossingAnalyzer import *
from DB_Util import *

# DB_Util instance.
db = DB_Util()

# Deploy the analyzer.
analyzer = PedestrianCrossingAnalyzer(KB_FILE)

# Run the analysis...
for i in range (INITIAL_FRAME, END_FRAME + 1):
    
    # Get the objects' info in the frame i...
    analyzer.analyze(db.get_objects_info(CAMERA, i))
